<template>
    <view class="chakan_box" v-if="showDetails">
        <view class="chakan_item">
            <view class="left">
                <van-icon name="/static/img/wenhao.png" size="20"></van-icon>
                <view class="text">详情说明</view>
                <view class="btn">立即查看</view>
            </view>
            <view class="right" @tap="close">
                <van-icon name="cross" size="18" />
            </view>
        </view>
    </view>
</template>
<script>
// components/kj-detail.js
export default {
    data() {
        return {};
    },
    /**
     * 组件的属性列表
     */
    props: {
        // 控制 显示/隐藏
        showDetails: {
            type: Boolean,
            default: true
        }
    },
    /**
     * 组件的方法列表
     */
    methods: {
        close() {
            console.log('kj-details=========>close');
            // this.triggerEvent("gocompanydetail", {data});
            this.$emit('kjdetailClose');
        }
    },
    created: function () {}
};
</script>
<style>
	@import './kj-detail.css';
</style>
